Nathan, could it be GetNextDocument you're thinking of? Certainly that fails when you do this:
Set doc = dc.GetFirstDocument
While Not(doc Is Nothing)
Call doc.Remove(True)
Set doc = dc.GetNextDocument(doc)
....
Here, the doc object is no more after the remove. so the GetNextDocument call fails, unless you instantiate another NotesDocument reference (based on "doc") in the mean time, and pass that into the GetNextDocument call instead of "doc".
--
http://www.benpoole.com